/* 基础分页样式 */
.pagination-container {
    margin: 1.5rem 0;
    padding: 0.5rem;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 浅色主题（默认） */
.pagination-container.light-theme {
    background-color: rgba(245, 245, 245, 0.9);
}

.pagination-container.light-theme .pagination-info {
    color: #444;
    font-size: 0.95rem;
}

.pagination-container.light-theme .pagination {
    margin: 0.5rem 0;
}

.pagination-container.light-theme .page-item .page-link {
    color: #333; /* 更深的字体颜色确保可读性 */
    background-color: rgba(255, 255, 255, 0.8);
    border: 1px solid #ccc;
    margin: 0 2px;
    min-width: 36px;
    text-align: center;
    transition: all 0.3s ease;
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 1.2rem;
}

.pagination-container.light-theme .page-item .page-link:hover {
    background-color: #e9ecef;
    border-color: #aaa;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.pagination-container.light-theme .page-item.active .page-link {
    background-color: #5a6268; /* 更深的背景色增强对比 */
    border-color: #545b62;
    color: white;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.pagination-container.light-theme .page-item.disabled .page-link {
    color: #888;
    pointer-events: none;
    background-color: rgba(255, 255, 255, 0.5);
}

/* 深色主题 */
.pagination-container.dark-theme {
    background-color: rgba(40, 44, 52, 0.9);
}

.pagination-container.dark-theme .pagination-info {
    color: #ccc;
}

.pagination-container.dark-theme .page-item .page-link {
    color: #e0e0e0;
    background-color: rgba(60, 65, 75, 0.8);
    border: 1px solid #444;
}

.pagination-container.dark-theme .page-item .page-link:hover {
    background-color: rgba(80, 85, 95, 0.9);
    border-color: #666;
}

.pagination-container.dark-theme .page-item.active .page-link {
    background-color: #3a6ea5;
    border-color: #2a5e95;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .pagination-container {
        padding: 0.3rem;
    }

    .pagination-container .pagination {
        flex-wrap: wrap;
        justify-content: center;
    }

    .page-item {
        margin: 3px;
    }

    .page-link {
        padding: 5px 10px;
        min-width: 34px;
        font-size: 0.85rem;
    }

    .pagination-info {
        font-size: 0.85rem;
    }

    /* 移动端隐藏文字，只显示图标 */
    .page-link span[aria-hidden="true"] + span {
        display: none;
    }

    .page-link span[aria-hidden="true"] {
        margin-right: 0;
    }
}

/* 按钮组间距优化 */
.pagination > li:not(:first-child) {
    margin-left: 5px;
}